package com.itheima.service.impl;

import com.itheima.domain.User;
import com.itheima.service.UserService;

public class UserServiceImpl implements UserService {

    private String username;
    private String nickname;
    private String age  ;

    @Override
    public String toString() {
        return "UserServiceImpl{" +
                "username='" + username + '\'' +
                ", nickname='" + nickname + '\'' +
                ", age='" + age + '\'' +
                ", user=" + user +
                '}';
    }

    private User user;

    public void save() {
        System.out.println("xxxxxx");
        System.out.println(username);
        System.out.println(nickname);
        System.out.println(age);
        System.out.println(user);
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public UserServiceImpl() {
    }

    public UserServiceImpl(String username, String nickname, String age, User user) {
        this.username = username;
        this.nickname = nickname;
        this.age = age;
        this.user = user;
    }


}
